import service from "@/service";

import type { IOper } from "../MyType";
// 查看 
export const additionapi = ()=> service({
    url:"/admin/list",

});
// 删除
export const Deleteoperatorapi =(adminid:string)=> service.post("/admin/delete",{adminid})


// /admin/add 添加
export const Addmanagementpersonnelapi = (data:IOper)=> service({
    url:"/admin/add",
    method:"post",
    data


})
// 管理员修改  /admin/update
// export const Modificationapi = (data:IOper)=> service({
    
//     url:"/admin/update",
//     method:"data",
//     data
// });
// 4、管理员修改
export const Modificationapi = (data:IOper)=>service.post("/admin/update",data);
//6、获取某个管理员的信息：
export const getOperDetailApi = (adminname:string)=>service.get("/admin/detail",{params:{adminname}});